<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>emp_Udate</title>
</head>
<body>
<form th:action="@{/toUpdate}" method="post">
    <input type="hidden" name="_method" value="put">
    <!--/*@thymesVar id="emp" type="com.hx.pojo.Emp"*/-->
    <input type="text" name="id" th:value="${emp.id}"><br>
    lastName：<input type="text" name="lastName" th:value="${emp.lastname}"><br>
    email：<input type="text" name="email" th:value="${emp.email}"><br>
    gender:<input type="radio" name="gender" value="1" th:field="${emp.gender}">male
    <input type="radio" name="gender" value="0" th:field="${emp.gender}">female<br>
    提交：<input type="submit" name="update"><br>
</form>
</body>
</html>